package com.wcpdoc.survey.report.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wcpdoc.survey.core.entity.Chart;
import com.wcpdoc.survey.core.entity.PageIn;
import com.wcpdoc.survey.core.entity.PageOut;
import com.wcpdoc.survey.report.service.StatisAnlsService;
import com.wcpdoc.survey.survey.entity.PaperQuestionEx;
import com.wcpdoc.survey.survey.entity.Survey;
import com.wcpdoc.survey.survey.service.PaperService;
import com.wcpdoc.survey.survey.service.SurveyService;
import com.wcpdoc.survey.survey.service.SurveyTypeService;

/**
 * 统计分析服务层实现
 * 
 * v1.0 zhanghc 2017年10月28日上午11:38:27
 */
@Service
public class StatisAnlsServiceImpl implements StatisAnlsService {
	@Resource
	private SurveyService surveyService;
	@Resource
	private SurveyTypeService surveyTypeService;
	@Resource
	private PaperService paperService;
	
	@Override
	public PageOut getSurveyListpage(PageIn pageIn) {
		return surveyService.getListpage(pageIn);
	}

	@Override
	public List<Map<String, Object>> getSurveyTypeTreeList() {
		return surveyTypeService.getTreeList();
	}

	@Override
	public Survey getSurvey(Integer surveyId) {
		return surveyService.getEntity(surveyId);
	}

	@Override
	public List<PaperQuestionEx> getPaperList(Integer paperId) {
		return paperService.getPaperList(paperId);
	}

	@Override
	public Chart getChart(Integer surveyId, Integer questionId) {
		return surveyService.getChart(surveyId, questionId);
	}
}
